package com.pond.pond.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pond.pond.mapper.FinanceRecordMapper;
import com.pond.pond.domain.FinanceRecord;
import com.pond.pond.service.IFinanceRecordService;

/**
 * 财务记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
@Service
public class FinanceRecordServiceImpl implements IFinanceRecordService 
{
    @Autowired
    private FinanceRecordMapper financeRecordMapper;

    /**
     * 查询财务记录
     * 
     * @param id 财务记录主键
     * @return 财务记录
     */
    @Override
    public FinanceRecord selectFinanceRecordById(Long id)
    {
        return financeRecordMapper.selectFinanceRecordById(id);
    }

    /**
     * 查询财务记录列表
     * 
     * @param financeRecord 财务记录
     * @return 财务记录
     */
    @Override
    public List<FinanceRecord> selectFinanceRecordList(FinanceRecord financeRecord)
    {
        return financeRecordMapper.selectFinanceRecordList(financeRecord);
    }

    /**
     * 新增财务记录
     * 
     * @param financeRecord 财务记录
     * @return 结果
     */
    @Override
    public int insertFinanceRecord(FinanceRecord financeRecord)
    {
        return financeRecordMapper.insertFinanceRecord(financeRecord);
    }

    /**
     * 修改财务记录
     * 
     * @param financeRecord 财务记录
     * @return 结果
     */
    @Override
    public int updateFinanceRecord(FinanceRecord financeRecord)
    {
        return financeRecordMapper.updateFinanceRecord(financeRecord);
    }

    /**
     * 批量删除财务记录
     * 
     * @param ids 需要删除的财务记录主键
     * @return 结果
     */
    @Override
    public int deleteFinanceRecordByIds(Long[] ids)
    {
        return financeRecordMapper.deleteFinanceRecordByIds(ids);
    }

    /**
     * 删除财务记录信息
     * 
     * @param id 财务记录主键
     * @return 结果
     */
    @Override
    public int deleteFinanceRecordById(Long id)
    {
        return financeRecordMapper.deleteFinanceRecordById(id);
    }
}
